package schoolDemo3;

public class App5_5 {
    public static void main(String[] args){
        int i,j,k,sum=0;
        int[][][] arr={{{1,2},{3,4}},{{5,6},{7,8}}};
        for(i=0;i<arr.length;i++)
            for(j=0;j<arr[i].length;j++)
                for(k=0;k<arr[j].length;k++){
                    System.out.println("arr["+i+"]["+j+"]["+k+"]="+arr[i][j][k]);
                    sum+=arr[i][j][k];
                }
        System.out.print("sum="+sum);
    }
}
